package com.yc.base.support.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ResourceBundle;

/**
 * 项目参数工具类
 */
public class ResourceUtil {
	private static final Logger log = LoggerFactory.getLogger(ResourceUtil.class);

	private static final ResourceBundle bundle = ResourceBundle.getBundle("systemConf");

	/**
	 * 获取配置文件参数
	 *
	 * @param name
	 * @return
	 */
	public static final String getConfigByName(String name) {
		return bundle.getString(name);
	}

	/**
	 * 测试获取param
	 */
	public static String getNettyDefaultPort() {
		return bundle.getString("nettyDefaultPort");
	}


}
